#ifndef MEMORY_H_
# define MEMORY_H_

# include <stdio.h>

typedef struct segment s_segment;

struct segment
{
  unsigned short segment_limit;
  unsigned short base_adress;
  unsigned char base_low;
  unsigned char flag1;
  unsigned char flag2;
  unsigned char base_high;
} __attribute__((packed));

typedef struct gdtr s_gdtr;

struct gdtr
{
  unsigned int lim:16;
  unsigned int gdt:32;
} __attribute__((packed));


void init_gdt ();

#endif /* !MEMORY_H_ */
